package com.hobee.basic;

import com.hobee.basic.config.datasource.DataSourceConfig;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.annotation.Import;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * @author junjie.li@aliyun.com
 * @date 2020/6/29
 */
@MapperScan(basePackages = "com.hobee.basic.mapper")
@Import({DataSourceConfig.class})
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class,})
@EnableScheduling
public class BasicApplication {

    public static void main(String[] args) {
        SpringApplication springApplication = new SpringApplication(BasicApplication.class);
        springApplication.setBanner(new BasicApplicationBanner());
        springApplication.run(args);
    }

}
